import { EntityObjectFactory } from './../entityObjectFactory';
var EntityObject = EntityObjectFactory.GetEntityObjectType();

export class DeliveryOrder extends EntityObject<DeliveryOrder>{
    constructor(ctx?) { super(ctx); }
    id: string;

    /**
     * 传菜单的序列号 ‘K-1-12’
     * 
     * @type {string}
     * @memberOf DeliveryOrder
     */
    serialNo: string;


    /**
     * 传菜单 ID 集合
     * 
     * @type {[string]}
     * @memberof DeliveryOrder
     */
    expediteOrderIds: string[];

    /**
     * 传菜单状态 init 初始化 | delivered 已传菜
     * 
     * @type {string}
     * @memberOf DeliveryOrder
     */
    status: "init" | "delivered";

    terminalId: string;

    /**
     * 传菜人 ID
     * 
     * @type {string}
     * @memberof DeliveryOrder
     */
    deliveryerId: string;

    /**
     * 传菜人
     * 
     * @type {{ id: string; name: string }}
     * @memberof DeliveryOrder
     */
    deliveryer: { id: string; name: string };

    beginTime: number;
    finishTime?: number;


    toString(): string { return "DeliveryOrder"; }
}